package elearning.controller.admin.regist;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import com.google.appengine.api.datastore.Key;

import elearning.service.ElearningService;

public class DeleteQuestionController extends Controller {

	private ElearningService service = new ElearningService();
	
    @Override
    public Navigation run() {
    	Key key = asKey("key");
    	Long version = asLong("version");
    	service.deleteQuestion(key, version);
        return redirect("edit");
    }
}
